package com.luweijie.sh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.luweijie.entity.vo.Result;
import com.luweijie.sh.entity.Users;
import com.luweijie.sh.mapper.UsersMapper;
import com.luweijie.sh.service.IUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author luweijie
 * @since 2020-06-11
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements IUsersService {
     @Autowired
     UsersMapper usersMapper;


     public Result queryByRole(String name){
         Result result = usersMapper.queryByRole(name);

         return result;
     }

}
